package com.zxl.common.constant;

/**
 * @author zxw
 * @date 2023/3/30
 */
public enum ResponseStatusCode {
    /** 200 成功 ， 500 后台代码错误 */
    SUCCESS(200,"ok"),
    PERMISSION_NOT_HAVE(403,"无此权限"),
    PERMISSION_NOT_LOG_IN(555, "账号未登录"),
    ERROR(500,"服务内部错误"),
    PARAM_ERROR(400,"请求参数错误"),
    NOT_FOUND_ERROR(404,"未找到此路径"),
    DEPRECATED_INTERFACE(50003,"小程序已更新 请退出小程序加载最新版本"),
    NOT_PHONE(444,"请绑定手机号");

    ;


    private Integer code;
    private String message;

    ResponseStatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}